package com.techwells.learningkites.model;

import java.util.List;

import com.techwells.learningkites.base.KitesViewModel;
import com.techwells.learningkites.networkservice.KitesServiceMediator;
import com.techwells.learningkites.networkservice.model.CourseCategory;
import com.techwells.learningkites.networkservice.model.Page;
import com.techwells.learningkites.networkservice.model.VideoCategory;
import com.techwells.taco.tasktool.TaskToken;

public class RegisterViewModel extends KitesViewModel {

	public String captcha;
	public int returnCode,loginReturnCode;

	@Override
	public void paddingResult(TaskToken token) {
		// TODO Auto-generated method stub
		super.paddingResult(token);
		
		String method = token.method;
		if (method.equals(KitesServiceMediator.SERVICE_GET_CAPTCHA)) {
			captcha = (String) response.getResponse();
		}else if (method.equals(KitesServiceMediator.SERVICE_DO_REGISTER)){
			returnCode = response.getReturnCode();
		}else if (method.equals(KitesServiceMediator.SERVICE_DO_LOGIN)) {
			loginReturnCode = response.getReturnCode();
		}
		
	}
}
